﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace NutriLeaf.Web.Core.Shopping
{
    public interface IBarcode
    {
        void AddBarcode(string barcode,BarCodeType type, ref Model.NutriLeafDBEntities context);

        void RemoveBarcode(int barcodeId, ref Model.NutriLeafDBEntities context);

        void AddBarcodeToFoodIngredient(int barcodeId, int foodId, ref Model.NutriLeafDBEntities context);

        void RemoveBarcodeFromFoodIngredient(int barcodeId, int foodId, ref Model.NutriLeafDBEntities context);

        void RemoveBarcodeFromFoodIngredient(int barcodeFoodIngredientId, ref Model.NutriLeafDBEntities context);

        Model.FoodIngredient GetFoodIngredientByBarcode(string barcode, ref Model.NutriLeafDBEntities context);

        Model.Barcode GetBarcodeByFoodIngredient(int foodIngredientId, ref Model.NutriLeafDBEntities context);

        Model.Barcode GetBarcodeById(int id, ref Model.NutriLeafDBEntities context);

    }
}